package kr.hkit.powerjava.chapter09.work;

class Movie {
	private String title;
	private String director;
	private String product;
	
	public Movie() {
		
	}
	
	public Movie(String title, String director, String product) {
		this.title = title;
		this.director = director;
		this.product = product;
	}
	
	public void setMovie(String title, String director, String product) {
		this.title = title;
		this.director = director;
		this.product = product;
	}

	@Override
	public String toString() {
		return "Movie [title = " + title + ", director = " + director
				+ ", product = " + product + "]";
	}
	
	
}

public class MovieTest {
	public static void main(String[] args) {
		Movie m = new Movie();
		m.setMovie("두근두근 내인생", "이재용", "CJ");
		System.out.println(m);
	}
}
